QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Setting Idle Methods

QuickDraw 3D provides a function that you can use to set a file object's idle method. QuickDraw 3D executes your idle method occasionally during lengthy file operations. See "Application-Defined Routines" for information on writing an idle method.

Q3File_SetIdleMethod

You can use the Q3File_SetIdleMethod function to set a file object's idle method.

TQ3Status Q3File_SetIdleMethod (
                     TQ3FileObject file,
                     TQ3FileIdleMethod idle,
                     const void *idleData);
file
A file object.
idle
A pointer to an idle method. See [link] for information on idle methods.
idlerData
A pointer to an application-defined block of data. This pointer is passed to the idler callback routine when it is executed.

DESCRIPTION

The Q3File_SetIdleMethod function sets the idle method of the file object specified by the file parameter to the function specified by the idle parameter. The idlerData parameter is passed to your idle method whenever it is executed.


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |